/******************************************************************
 * Copyright(c)  Suzsoft DotNet Group
 * Description   : 
 * CreateDate    : 2006-06-04 
 * Creater       : Brian.xue
 * LastChangeDate: 
 * LastChanger   : 
 * Version Info  : 1.0
 * ******************************************************************/
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Windows.Forms;
using System.Workflow.Activities;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.ComponentModel.Compiler;

namespace Crab.WorkflowClient
{
    // Design Surface is used to provide services.
    internal sealed class WorkflowDesignSurface : DesignSurface
    {
        internal WorkflowDesignSurface(IServiceProvider serviceProvider)
        {
            this.ServiceContainer.AddService(typeof(IMenuCommandService), new WorkflowMenuCommandService(this.ServiceContainer));

            //TypeProvider typeProvider = new TypeProvider(serviceProvider);
            //typeProvider.AddAssemblyReference(typeof(string).Assembly.Location);
            //this.ServiceContainer.AddService(typeof(ITypeProvider), typeProvider, true);
        }
    }
}
